RequestInterceptedEvent

data class RequestInterceptedEvent(interceptionId: InterceptionId, request: Request, frameId: FrameId, resourceType: ResourceType, isNavigationRequest: Boolean, isDownload: Boolean?, redirectUrl: String?, authChallenge: AuthChallenge?, responseErrorReason: ErrorReason?, responseStatusCode: Int?, responseHeaders: Headers?, requestId: RequestId?) : Event

Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.

Constructors

RequestInterceptedEvent
Link copied to clipboard
fun RequestInterceptedEvent(interceptionId: InterceptionId, request: Request, frameId: FrameId, resourceType: ResourceType, isNavigationRequest: Boolean, isDownload: Boolean? = null, redirectUrl: String? = null, authChallenge: AuthChallenge? = null, responseErrorReason: ErrorReason? = null, responseStatusCode: Int? = null, responseHeaders: Headers? = null, requestId: RequestId? = null)

Functions

domain
Link copied to clipboard
open override fun domain(): String
Returns domain name for which event was generated.
eventName
Link copied to clipboard
open override fun eventName(): String
Returns event name as described in protocol.

Properties

authChallenge
Link copied to clipboard
val authChallenge: AuthChallenge? = null
Details of the Authorization Challenge encountered.
frameId
Link copied to clipboard
val frameId: FrameId
The id of the frame that initiated the request.
interceptionId
Link copied to clipboard
val interceptionId: InterceptionId
Each request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch.
isDownload
Link copied to clipboard
val isDownload: Boolean? = null
Set if the request is a navigation that will result in a download.
isNavigationRequest
Link copied to clipboard
val isNavigationRequest: Boolean
Whether this is a navigation request, which can abort the navigation completely.
redirectUrl
Link copied to clipboard
val redirectUrl: String? = null
Redirect location, only sent if a redirect was intercepted.
request
Link copied to clipboard
val request: Request
requestId
Link copied to clipboard
val requestId: RequestId? = null
If the intercepted request had a corresponding requestWillBeSent event fired for it, then this requestId will be the same as the requestId present in the requestWillBeSent event.
resourceType
Link copied to clipboard
val resourceType: ResourceType
How the requested resource will be used.
responseErrorReason
Link copied to clipboard
val responseErrorReason: ErrorReason? = null
Response error if intercepted at response stage or if redirect occurred while intercepting request.
responseHeaders
Link copied to clipboard
val responseHeaders: Headers? = null
Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.
responseStatusCode
Link copied to clipboard
val responseStatusCode: Int? = null
Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.

Sources

jvm source
Link copied to clipboard